package quantum2.draw;

import javax.swing.*;
import java.applet.Applet;

public final class ComplexApplet extends Applet {

    private MainFrame frame = null;

    public void init() {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                frame = new MainFrame();
            }
        });
    }

    public void destroy() {
        if (frame != null) {
            frame.dispose();
        }
    }
}
